package com.xjnt.frameworks.plugin.sql.element;

import java.util.List;

import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

import com.google.common.collect.Lists;

/**
 * @author caoyong
 *
 */
@XmlRootElement
public class SqlRoot {
	@XmlAttribute
    public String name;
	@XmlElement(name = "sqlGroup")
    public List<SqlGroup> sqlGroups = Lists.newArrayList();
	
	void addSqlGroup(SqlGroup sqlGroup){
		sqlGroups.add(sqlGroup);
	}
}
